/**
 * All rights Reserved, Copyright (C) WANGJIAN LIMITED 2013
 * FileName: Constant.java
 * Version:  $Revision$
 * Modify record:
 * NO. |		Date		|		Name		|		Content
 * 1   |	2012-12-12		|	JFTT)WANGJIAN	|	original version
 */
package com.pl.common;

/**
 * 
 * @author jftt
 *
 */
public class Constant {
	
	/**
	 * 文件分割分
	 */
	public static final String FILE_SEPARATOR = "/";
	
	public static final String AuthenticationNamePRE = "oauth_";
	
	//用户session的key
	public enum sessionKey{
		OAUTH_USER_ID("OAUTH_USER_ID"),         //oauth_用户主键id
		USER_ID("USER_ID"),         			//用户主键id
		REAL_NAME("REAL_NAME"),   				//用户真实姓名
		LOGIN_IMAGE_CODE("LOGIN_IMAGE_CODE");   //登录页面图形验证码
		
		private String value;
		
		private sessionKey(String value){
			this.value = value;
		}
		
		public String getValue(){
			return value;
		}
	}
	
	//删除标记位
	public enum isDelete{
		NO(0), YES(1);
		
		private int value;
		
		private isDelete(int value){
			this.value = value;
		}
		
		public int getValue(){
			return value;
		}
	}
	
	//上传文件，结果类型
	public enum UploadFileBeanType{
		ERROR(0), SUCCESS(1), FILESIZE(2);
		
		private int type;
		
		private UploadFileBeanType(int type){
			this.type = type;
		}
		
		public int getType(){
			return type;
		}
	}
	
	//用户在职离职状态
	public enum UserJobStatus{
		on("在职"), 
		leave("离职");
		
		private String nameCN;
		
		private UserJobStatus(String nameCN){
			this.nameCN = nameCN;
		}
		
		public String getNameCN(){
			return nameCN;
		}
	}
}
